#CMake 最低版本要求
cmake_minimum_required(VERSION 2.8)
#项目名称
project (demo)

if(CMAKE_BUILD_TYPE AND (CMAKE_BUILD_TYPE STREQUAL "Debug"))
    set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -O0" )
    message("Debug mode:${CMAKE_C_FLAGS_DEBUG}")
elseif(CMAKE_BUILD_TYPE AND (CMAKE_BUILD_TYPE STREQUAL "Release"))
    set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}" -Wall -o3)
    message("Release mode:${CMAKE_C_FLAGS_RELEASE}")
endif()
#指定生成可执行文件
add_executable(demo main.cpp uuidutil.cpp uuidutil.h)
